<!DOCTYPE HTML>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title><@spring.message "msg.general.title" /></title>
		<link rel="stylesheet" type="text/css" href="<@spring.url '/resources/styles/view.css' />">
	</head>
	<body onclick="window.close();">
		<section id="view-item">
			<h2>${article.title!!}</h2>
			<table id="top">
				<tr>
					<td class="picture">
						<img src="<@spring.url '/images/${article.pictureUrl!!}' />" />
					</td>
					<td class='description'>${article.description!!}</td>
				</tr>
			</table>
			<table id="about">
				<tr>
					<td class='info'><@spring.message "itemViewPage.price" /></td>
					<td>${article.price!!}&euro;</td>
				</tr>
				<tr>
					<td class='info'><@spring.message "itemViewPage.addedDate" /></td>
					<td>${(article.addedDate?string("EEEE dd MMMM '&agrave;' hh'h'mm"))!!}</td>
				</tr>
				<tr>
					<td class='info'><@spring.message "itemViewPage.category" /></td>
					<td>${article.category.name!!}</td>
				</tr>
				<tr>
					<td class='info'><@spring.message "itemViewPage.region" /></td>
					<td>${article.region.name!!}</td>
				</tr>
				<tr>
					<td class='info'><@spring.message "itemViewPage.codepostal" /></td>
					<td>${(article.postalCode)!!}</td>
				</tr>
				<tr>
					<td class='info'><@spring.message "itemViewPage.nom" /></td>
					<td>${(article.name)!!}</td>
				</tr>
				<tr>
					<td class='info'><@spring.message "itemViewPage.phone" /></td>
					<td>${(article.phone)!!}</td>
				</tr>
				<tr>
					<td class='info'><@spring.message "itemViewPage.email" /></td>
					<td>${(article.email)!!}</td>
				</tr>
			</table>
		</section>
	</body>
</html>
